package com.sanyang.logistics.sch.dao;

import java.util.List;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.sanyang.logistics.pojo.Region;
import com.sanyang.logistics.pojo.Role;
import com.sanyang.logistics.pojo.SysUser;
import com.sanyang.logistics.sch.mapper.LoginMapper;

@Repository("dao")
public class LoginDaolmp implements LoginDao{
	
	@Autowired
	private LoginMapper mapper;

	@Override
	public SysUser all(SysUser sysUser) {
		SysUser all = mapper.all(sysUser);
		return all;
	}

	@Override
	public List<SysUser> loginall(SysUser sysUser) {
		List<SysUser> loginall = mapper.loginall(sysUser);
		return loginall;
	}

	@Override
	public void logindele(Integer user_id) {
		mapper.logindele(user_id);
		
	}

	@Override
	public List<Role> roleall() {
		List<Role> roleall = mapper.roleall();
		return roleall;
	}

	@Override
	public void loginadd(SysUser sysUser) {
		mapper.loginadd(sysUser);
		
	}

	@Override
	public SysUser loginse(Integer user_id) {
		SysUser loginse = mapper.loginse(user_id);
		return loginse;
	}

	@Override
	public void loginup(SysUser sysUser) {
		mapper.loginup(sysUser);
		
	}

	@Override
	public List<Region> regionall() {
		List<Region> regionall = mapper.regionall();
		return regionall;
	}

	@Override
	public List<SysUser> loginuserjudgment(SysUser sysUser) {
		List<SysUser> loginuserjudgment = mapper.loginuserjudgment( sysUser);
		return loginuserjudgment;
	}


	
	
	
	

}
